﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class BContentToSqlServer
    {
        DBContentToSqlServer dts = new DBContentToSqlServer();

        public List<MMachineStateCNC> GetMachineStateDataByCNC()
        {
            return dts.GetMachineStateDataByCNC();
        }

        public List<MMachineCapactiyCNC> GetMachineCapactiyDataByCNC()
        {
            return dts.GetMachineCapactiyDataByCNC();
        }
        public List<MMachineProgram> GetMachineProgramDataByCNC()
        {
            return dts.GetMachineProgramDataByCNC();
        }
        public List<MMachinePressure> GetMachinePressureDataByCNC()
        {
            return dts.GetMachinePressureDataByCNC();
        }
        public List<MMachinetemperature> GetMachinetemperatureDataByCNC()
        {
            return dts.GetMachinetemperatureDataByCNC();
        }
        public List<MMachineAlarmCNC> GetMachineAlarmDataByCNC()
        {
            return dts.GetMachineAlarmDataByCNC();
        }

        public int InsertMachineStatusTime(MachineStatusMessage data)
        {
            return dts.InsertMachineStatusTime(data);
        }

        public List<WorkNoList> GetWorkNo(string MachineId)
        {
            return dts.GetWorkNo(MachineId);
        }

        public List<WorkNoList1> GetWorkNo1(string Wono)
        {
            return dts.GetWorkNo1(Wono);
        }

        public int InsertDJ(DJDataModel data)
        {
            return dts.InsertDJ(data);
        }

        public List<DJDataModelList> GetDJList()
        {
            return dts.GetDJList();
        }
        public bool GetDayData()
        {
            return dts.GetDayData();
        }

        public List<ZXJDataModel> GetDJData()
        {
            return dts.GetDJData();
        }

        public int UpdateData(List<string> ids)
        {
            return dts.UpdateData(ids);
        }
        public List<DJDataModelList> GetDJList1(string Time)
        {
            return dts.GetDJList1(Time);
        }
        public List<DJDayDataModelList> GetDayDJList(SearchModel data)
        {
            return dts.GetDayDJList(data);
        }

        public List<TimerModel> GetTimer(TimerSearchModel data)
        {
            return dts.GetTimer(data);
        }

        public List<CZRYModel> GetCZRY(string MachineId)
        {
            return dts.GetCZRY(MachineId);
        }

        public List<ZZModel> GetZZ(string MachineId)
        {
            return dts.GetZZ(MachineId);
        }

        public List<SBBYModel> GetSBBY(string MachineId)
        {
            return dts.GetSBBY(MachineId);
        }
    }

}
